"""meiduo URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url, include
from django.contrib import admin
from . import views
urlpatterns = [
url(r'^register/$', views.RegisterView.as_view(), name='register'),
url(r'^usernames/(?P<username>[a-zA-Z0-9_-]{5,20})/count/$', views.UsernameCountView.as_view(), name='username'),
url(r'^mobiles/(?P<mobile>1[345789]\d{9})$', views.MobileCountView.as_view(), name='mobile'),
url(r'^login/$',views.LoginView.as_view()),
url(r"^logout/$",views.LogoutView.as_view()),
url(r"^info/$",views.InfoView.as_view()),
url(r"^emails/$",views.EamilView.as_view()),
url(r"^password/$",views.PassWordView.as_view()),
    ################################
url(r'find_password/$',views.Find_passwordView.as_view()),
url(r'accounts/(?P<username>[a-zA-Z0-9_-]{5,20})/sms/token/$',views.Get_Token.as_view()),
url(r'sms_codes/$',views.Send_smscode.as_view()),
url(r'accounts/(?P<username>[a-zA-Z0-9_-]{5,20})/password/token/$', views.Check_SMScode.as_view()),
url(r'users/(?P<user_id>(\d+))/password/$', views.SetPassword.as_view()),



]
